package com.app.biz.controller;

import cn.hutool.core.lang.tree.Tree;
import com.app.biz.service.IBizIndustrialDataService;
import com.app.common.core.domain.AjaxResult;
import com.app.system.domain.BizIndustrialData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/biz/industrialdata")
public class BizIndustrialDataController {

    @Autowired
    private IBizIndustrialDataService bizIndustrialDataService;

    @GetMapping("/selectIndustrialDataService")
    public AjaxResult selectIndustrialDataService(@RequestParam(value = "pId",required = false)String pId){
        List<BizIndustrialData> bizIndustrialData = this.bizIndustrialDataService.selectIndustrialDataService(pId);
        return AjaxResult.success(bizIndustrialData);
    }
}
